home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / crazy_ch.swf / scripts / frame_1 / DoAction_3.as < prev    next >
Encoding:
Text File  |  2011-06-09  |  442 b   |  26 lines

  1. function detectKeys()
  2. {
  3.    var _loc1_ = 0;
  4.    if(Key.isDown(32))
  5.    {
  6.       if(levelof > 0)
  7.       {
  8.          gotoAndPlay(levelof22);
  9.       }
  10.       else
  11.       {
  12.          gotoAndStop("level3");
  13.          play();
  14.       }
  15.    }
  16. }
  17. stop();
  18. var Iso = SharedObject.getLocal("pac");
  19. trace("iso=" + Iso.data.userId);
  20. score_you.text = Iso.data.userId;
  21. if(Iso.data.userId == undefined)
  22. {
  23.    trace("ofer");
  24.    score_you.text = 0;
  25. }
  26.